import java.awt.Point;
import java.net.InetAddress;

public class ClientMain {

	public static void main(String[] args) {
		try {
			SynchQueue sendQueue = new SynchQueue();
			SynchQueue packetQueue = new SynchQueue();
			SynchQueue messageQueue = new SynchQueue();
			SenderThread snt = new SenderThread(sendQueue);
			NetworkSender ns = new NetworkSender(sendQueue);
			ClientMessageSender cms = new ClientMessageSender(ns, InetAddress
					.getByName("172.16.5.1"), InetAddress
					.getByName("172.16.5.15"));
			TheWorld sep = new TheWorld(messageQueue, cms);
			GameWindow gw = new GameWindow(cms);
			MessageReceiverThread mrt = new MessageReceiverThread(packetQueue,
					messageQueue);
			NetworkRecieverThread nrt = new NetworkRecieverThread(packetQueue);

			snt.start();
			mrt.start();
			nrt.start();

		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}